package com.jp.knowledge.my.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author gzejia 978862664@qq.com
 */
public class AuditModel implements Parcelable {

    // 头像
    private String mUrl;
    // 姓名
    private String mName;
    // 手机号码
    private String mPhone;
    // 申请时间
    private String mTime;
    // 审核状态 0_待审核，1_已同意，2_已拒绝
    private int mStats;

    public String getUrl() {
        return mUrl;
    }

    public void setUrl(String url) {
        mUrl = url;
    }

    public String getName() {
        return mName;
    }

    public void setName(String name) {
        mName = name;
    }

    public String getPhone() {
        return mPhone;
    }

    public void setPhone(String phone) {
        mPhone = phone;
    }

    public String getTime() {
        return mTime;
    }

    public void setTime(String time) {
        mTime = time;
    }

    public int getStats() {
        return mStats;
    }

    public void setStats(int stats) {
        mStats = stats;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mUrl);
        dest.writeString(this.mName);
        dest.writeString(this.mPhone);
        dest.writeString(this.mTime);
        dest.writeInt(this.mStats);
    }

    public AuditModel() {
    }

    protected AuditModel(Parcel in) {
        this.mUrl = in.readString();
        this.mName = in.readString();
        this.mPhone = in.readString();
        this.mTime = in.readString();
        this.mStats = in.readInt();
    }

    public static final Parcelable.Creator<AuditModel> CREATOR = new Parcelable.Creator<AuditModel>() {
        @Override
        public AuditModel createFromParcel(Parcel source) {
            return new AuditModel(source);
        }

        @Override
        public AuditModel[] newArray(int size) {
            return new AuditModel[size];
        }
    };
}
